package org.mq.mymq.broker.model;

import java.util.Arrays;

/**
 * @ClassName CommitLogMessageModel
 * @Description CommitLog存储的真实信息数据
 * @Author jiarong_ye
 * @Date 2025/6/16 9:34
 * @Version 1.0
 */
public class CommitLogMessageModel {
    /**
     * 消息体真实内容
     */
    private byte[] content;


    public byte[] getContent() {
        return content;
    }

    public void setContent(byte[] content) {
        this.content = content;
    }

    public int getSize() {
        return content.length;
    }

    @Override
    public String toString() {
        return "CommitLogMessageModel{" +
                "content=" + Arrays.toString(content) +
                '}';
    }
}
